<div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="plus" title="添加公众号" data-toggle="tooltip" data-placement="left" onclick="createDialog('{:U("Wx/add_wx")}', '添加公众号', 'add_wx', {width:700, height:550})"></button>
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('Index/save')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <th width="26">NO.</th>
            <th>公众号名称</th>
            <th>公众号类型</th>
            <th>token</th>
            <th width="160">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>1</td>
            <td>{$va.wx_name}</td>
            <td>
            <switch name="va['wx_type']">
              <case value="1">普通订阅号</case>
              <case value="2">认证订阅号</case>
              <case value="3">普通服务号</case>
              <case value="4">认证服务号</case>
            </switch>
            </td>
            <td>{$va.wx_token}</td>
            <td>
                <button type="button" class="btn-blue" onclick="createDialog('{:U("Common/wxhelp")}', '微信配置说明', 'wx_help', {width:700, height:500})">帮助</button>
                <button type="button" class="btn-green" onclick="createDialog('{:U("Wx/add_wx")}', '修改公众号', 'add_wx', {width:700, height:550})">改</button>
                <a href="{:U('Forms/del_wx')}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="你确定要删除这个公众号吗?" >删</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />